package com.hengyi.dzfilter.controller;

import com.hengyi.dzfilter.utils.TextUtils;
import org.junit.Test;

/**
 * Hello world!
 */
public class App
{
    @Test
    public void test_1()
    {
    	String res = TextUtils.filter("操你妈，傻逼");
    	System.out.println(res);
    }

    @Test
    public void test_2()
    {
        String res = TextUtils.delSqlSymbol("select man");
        System.out.println(res);
    }
    @Test
    public void test_3()
    {
        String res = TextUtils.delAllSymbol("select,man，服务");
        System.out.println(res);
    }
    @Test
    public void test_4()
    {
        String res = TextUtils.delChineseSymbol("select,man，服务");
        System.out.println(res);
    }
    @Test
    public void test_5()
    {
        String res = TextUtils.delWordChar("select,man，服务");
        System.out.println(res);
    }
    @Test
    public void test_6()
    {
        String res = TextUtils.delChineseChar("select,man，服务");
        System.out.println(res);
    }

    @Test
    public void test_7()
    {
        String res = TextUtils.delSpaceAndLineTag("select,man，          服务");
        System.out.println(res);
    }
    @Test
    public void test_8()
    {
        String res = TextUtils.delHtmlTag("select,man，          服务");
        System.out.println(res);
    }

    @Test
    public void test_9()
    {
        //返回成功为1
        int i = TextUtils.addFilter("日");
        System.out.println(i);
    }

    @Test
    public void test_10()
    {
        //返回成功为1
        int i = TextUtils.addFilter("老鸟");
        int  j = TextUtils.addFilter("老二");
        System.out.println(i+","+j);
    }

    @Test
    public void test_11()
    {
        boolean i = TextUtils.judgeAllergic("日你老");

        System.out.println(i);
    }
    @Test
    public void test_12()
    {
        int i = TextUtils.delFilter("老二");

        System.out.println(i);
    }





}
